import { defineStore } from 'pinia';

export const useThemeStore = defineStore('theme', {
    state: () => ({
        theme: 'light',
    }),
    actions: {
        changeThemeTitle(mode: string) {
            this.theme = mode;
        },
    },
    persist: true, // 设置持久化
});
